import React, { useState, useEffect ,useReducer} from 'react'
export default function RightL(props) {
    return (
        <ul>
            {
               props.list.map(item => {
                    return (
                        <div className="nub1" key={item.id}>
                            <li>
                                <img src={item.img} alt="" />
                                <div>
                                    <p>{item.goodsname}</p>
                                    <p>￥{item.price}</p>
                                    <p>￥{item.market_price}</p>
                                    <button>加入购物车</button>
                                </div>
                            </li>
                        </div>
                    )
                })
            }
        </ul>
    )
}
